* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}

html,
body,
#app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--jn-base-html-bg, #f8f8f8);
    overflow: hidden;
    position: relative;
}

body {
    font-family: PingFangSC-Semibold, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
    font-size: var(--jn-base-font-size);
}

html.consumer {
    body {
        font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
        color: #222222
    }
}

/*修改滚动条样式*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: #e8e8e8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a5a3a3;
    cursor: pointer;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 500;
}

// 图片禁止拖动
img {
    -webkit-user-drag: none;
}

.el-popover.el-popper {
    .wrappers-calendar-popover {
        display: flex;
        align-items: center;
        font-family: PingFangSC-Regular;
        font-size: 12px;
        color: #333333;
        line-height: 22px;

        .bg {
            width: 12px;
            height: 12px;
            margin-right: 5px;
            background: #50c14e;
        }

        span {
            flex: 1;
        }
    }
}

// 表格表头多选总控隐藏
.el-dialog__body {
    .el-table__header-wrapper {
        .el-checkbox {
            display: none;
        }
    }
}

// 按钮上的 loading
.el-button {
    position: relative;

    .el-loading-mask {
        border-radius: 4px;
        opacity: 0.8;

        .el-loading-spinner {
            top: 0;

            svg {
                width: 20px;
            }
        }
    }
}

// 抽屉
.el-drawer {
    .el-drawer__body {
        overflow: hidden;
    }
}

// 消息
.el-message {
    z-index: 10000 !important;
}

// tool-tip 最大宽度
.el-popper {

    &:not(.el-popover, .el-select__popper, .el-select-v2__popper,
        .el-autocomplete__popper, .el-picker__popper,
        .el-dropdown__popper, .aside-menu-shrink-popup,
        .g-hint-box-popper, .my-custom-popper, .form-item-tip__popper, .input-lang-word-popper,
        .top-menu-popper) {
        max-width: 800px;

        // &,
        // .el-popper__arrow::before {
        //     background-color: var(--custom-color);
        //     border-color: var(--custom-color);
        //     line-height: 26px;
        //     color: var(--fourthly-item-base-color);
        //     font-size: 16px;
        // }
    }

    &.max-h-200 {
        max-height: 200px;
        overflow-y: auto;

        .el-popper__arrow {
            display: none;
        }
    }
}

// 确认框 zIndex
.el-overlay.is-message-box {
    z-index: 10001 !important;
}

// 全局遮罩
.loading-next {
    background-color: var(--jn-base-html-bg, #f8f8f8) !important;
}